﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="module.ascx.cs" Inherits="ExtraClub.Web.Controls.club_grid.module" %>
<div id="club-grid">
    <table>
        <thead>
            <tr>
                <th>
                    <%=UIText["select"] %>
                </th>
                <th>
                    <%="Mail Message"%>
                </th>
                <th>
                    Clients
                </th>
                <th>
                    <%=WebUtils.GetUIText("~/Modules/Forms/club", "username-label")%>
                </th>
                <th>
                    <%=WebUtils.GetUIText("~/Modules/Forms/club", "email-label")%>
                </th>
                <th>
                    <%=WebUtils.GetUIText("~/Modules/Forms/club", AspnetMembership.Columns.Password.ToLower() +  "-label")%>
                </th>
                <th>
                    <%=WebUtils.GetUIText("~/Modules/Forms/club", AspnetUserProfile.Columns.FirstName.ToLower() + "-label")%>
                </th>
                <th>
                    <%=WebUtils.GetUIText("~/Modules/Forms/club", AspnetUserProfile.Columns.FamilyName.ToLower() + "-label")%>
                </th>
                <th>
                    <%=WebUtils.GetUIText("~/Modules/Forms/club", Club.Columns.Name.ToLower() +  "-label")%>
                </th>
                <th>
                    <%=WebUtils.GetUIText("~/Modules/Forms/club", Club.Columns.ClubCategoryId.ToLower() + "-label")%>
                </th>
                <th>
                    <%=WebUtils.GetUIText("~/Modules/Forms/club", "idnumber-label")%>
                </th>
                <th>
                    <%="Address"%>
                </th>
                <th>
                    <%=WebUtils.GetUIText("~/Modules/Forms/club", "cellularphone-label")%>
                </th>
                <th>
                    <%=WebUtils.GetUIText("~/Modules/Forms/club", "homephone-label")%>
                </th>
            </tr>
        </thead>
        <tbody>
            <%list.ForEach(delegate(VwClubProfile item) { %>
            <tr id="row-<%=item.Id %>" class="<%=(list.IndexOf(item) + 1) % 2 == 0?"alter-row":"" %>">
                 <td>
                    <span class="uncheck has-layout"><%=UIText["unselect-label"]%></span>
                    <input class="select has-layout" type="radio" name="select" value="<%=item.Id %>" />
                </td>
                <td>
                    <a type="button" href="<%=WebUtils.UrlBuilder(string.Format("cmd={0}&id={1}&form={2}", ECommand.New, item.Id, "mail_message"))%>">
                        Send Email</a>
                </td>
                <td>
                    <a type="button"  href="<%=WebUtils.UrlBuilder(string.Format("view=2&cmd={0}&clubid={1}", ECommand.None, item.Id))%>">
                        To clitens</a>
                </td>
                <td>
                    <%=item.UserName%>
                </td>
                <td>
                    <%=item.Email%>
                </td>
                <td>
                    <%=item.Password%>
                </td>
                <td>
                    <%=item.FirstName%>
                </td>
                <td>
                    <%=item.FamilyName%>
                </td>
                <td>
                    <%=item.Name%>
                </td>
                <td>
                    <%=item.ClubCategoryName%>
                </td>
                <td>
                    <%=item.IDNumber%>
                </td>
                <td>
                    <%=string.Format("{0}-{1}, {2}/{3}",item.Zip, item.CityRegion, item.HouseNumber, item.Apartment)%>
                </td>
                <td>
                    <%=string.Format("{0}-{1}", item.CellularPhonePrefix, item.CellularPhone)%>
                </td>
                <td>
                    <%=string.Format("{0}-{1}", item.HomePhonePrefix, item.HomePhone)%>
                </td>
            </tr>
            <%}); %>
        </tbody>
    </table>
</div>
<extra:FormHolder ID="AddMailForm" FormName="mail_message" runat="server">
</extra:FormHolder>
